import {
  Controller,
  Get,
  Post,
  Body,
  Patch,
  Param,
  Delete,
} from '@nestjs/common';
import { CarPhotoService } from './car_photo.service';

@Controller('car-photo')
export class CarPhotoController {
  constructor(private readonly carPhotoService: CarPhotoService) {}

  // @Post()
  // create(@Body() createCarPhotoDto: CreateCarPhotoDto) {
  //   return this.carPhotoService.create(createCarPhotoDto);
  // }

  @Get()
  findAll() {
    return this.carPhotoService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.carPhotoService.findOne(+id);
  }

  // @Patch(':id')
  // update(
  //   @Param('id') id: string,
  //   @Body() updateCarPhotoDto: UpdateCarPhotoDto,
  // ) {
  //   return this.carPhotoService.update(+id, updateCarPhotoDto);
  // }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.carPhotoService.remove(+id);
  }
}
